import { Controller, Get,Inject } from '@nestjs/common';
import { UserService } from './user.service';
import { ArticleService } from '../article/article.service'

@Controller('user')
export class UserController {
  constructor(
    private readonly userService: UserService,
    private articleService: ArticleService,
    @Inject('CONFIG_OPTIONS') private options
  ) {}
  @Get()
  hello() {
    return this.articleService.create();
  }
   // 访问路径：/user/module
   @Get('module')
   getOption() {
     return this.options
   }
}
